package com.wwl.thread;

public class TestThread1 {
    public static void main(String[] args) {
        //创建任务
        Runnable pc = new PrintChar();
        Runnable pn = new PrintNumber();
        //创建线程
        Thread thread1 = new Thread(pc);
        Thread thread2 = new Thread(pn);
        //启动线程
        thread1.start();
        thread2.start();
    }
}




